package cn.tedu.innerclass;
/*用来测试成员内部类被private修饰*/
public class TestInner2 {
    public static void main(String[] args) {
        /*Outer2.Inner2 oi=new Outer2().new Inner2();
        oi.eat();*/
        new Outer2().getInner2Eat();

    }
}
class Outer2{
    public void getInner2Eat(){
        Inner2 in=new Inner2();
        in.eat();
    }
    private class Inner2{
        public void eat(){
            System.out.println("内部类....eat");
        }
    }
}